package com.qzimp.fujiancuo.mapper;

import com.mybatisflex.core.BaseMapper;
import com.qzimp.fujiancuo.entity.Collection;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 *  映射层。
 *
 * @author 李欧雯
 * @since 2024-12-20
 */
public interface CollectionMapper extends BaseMapper<Collection> {

    @Select("select * from tb_collection where userinfo_id=#{userinfoId}")
    List<Collection> getByUserId(@Param("userinfoId") Integer userinfoId);
}
